package com.example.wx.dao.manager;

import com.example.wx.dao.entity.WxPublicMessageTemplateDO;
import com.example.wx.dao.mapper.WxPublicMessageTemplateMapper;
import org.apache.commons.collections.CollectionUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class WxPublicMessageTemplateManager {
    @Autowired
    private WxPublicMessageTemplateMapper wxPublicMessageTemplateMapper;

    public void batchInsert(List<WxPublicMessageTemplateDO> wxPublicMessageTemplateDOS) {
        if(CollectionUtils.isEmpty(wxPublicMessageTemplateDOS)){
            return;
        }
        wxPublicMessageTemplateMapper.batchInsert(wxPublicMessageTemplateDOS);
    }
}
